﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;

namespace EZMemoLib
{
    public class DBContext : DbContext
    {
        public DBContext() : base() { }
        public DBContext( string nameOrCOnnectionString): base (  nameOrCOnnectionString ) {}

        public DbSet<MCategory> MemoCategories { get; set; }
    }

    [Table("MemoCategory")]
    public partial class MCategory
    {
        [Key]
        public int CategoryID { get; set; }

        public string CategoryName { get; set; }

    }
}
